package org.example.service.managebackend.module.user.domain.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;

@Data
@ApiModel("登录表单")
public class LoginFormDTO {

    @NotNull(message = "登录名不能为空")
    @ApiModelProperty(value = "用户名", required = true, example = "dev001")
    private String username;

    @NotNull(message = "密码不能为空")
    @ApiModelProperty(value = "密码", required = true, example = "123456")
    private String password;
}
